import { showLoadingToast } from 'vant';

// 多次调用只会存在同一个实例
export function Loading(status: boolean = true) {
  const LoadingInstance = showLoadingToast({});
  !status && LoadingInstance.close();
  return LoadingInstance;
}
